<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Document</title>
	<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="__PUBLIC/Home/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet" href="__PUBLIC/Home/bootstrap/3.3.5/css/bootstrap-theme.min.css">

<link href="__PUBLIC/Home/bootstrap/fileinput/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="__PUBLIC/Home/jquery/3.1.0/jquery.min.js"></script>

<script src="__PUBLIC/Home/bootstrap/fileinput/js/plugins/canvas-to-blob.min.js" type="text/javascript"></script>
<!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview.
     This must be loaded before fileinput.min.js -->
<script src="__PUBLIC/Home/bootstrap/fileinput/js/plugins/sortable.min.js" type="text/javascript"></script>
<!-- purify.min.js is only needed if you wish to purify HTML content in your preview for HTML files.
     This must be loaded before fileinput.min.js -->
<script src="__PUBLIC/Home/bootstrap/fileinput/js/plugins/purify.min.js" type="text/javascript"></script>
<!-- the main fileinput plugin file -->
<script src="__PUBLIC/Home/bootstrap/fileinput/js/fileinput.min.js"></script>
<!-- bootstrap.js below is needed if you wish to zoom and view file content 
     in a larger detailed modal dialog -->
<script src="__PUBLIC/Home/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- optionally if you need a theme like font awesome theme you can include 
    it as mentioned below -->
<script src="__PUBLIC/Home/bootstrap/fileinput/themes/fa/theme.js"></script>
<!-- optionally if you need translation for your language then include 
    locale file as mentioned below -->


</head>
<body>
<div class="container">
<h1>你要准备好两个txt文件</h1>
<form>
  <div class="form-group">
    <label for="exampleInputFile">File input</label>
    <input id="file-1" type="file" multiple class="file" data-overwrite-initial="false" data-min-file-count="2">
    <p class="help-block">Example block-level help text here.</p>
  </div>
</form>
</div>

</body>
</html>

<script type="text/javascript">
$('#file-1').fileinput({
    language: 'zh', //设置语言
    uploadUrl: "__PUBLIC/Home/aup.php", //上传的地址
    allowedFileExtensions : ['txt','sql'],//接收的文件后缀,
    maxFileCount: 100,
    enctype: 'multipart/form-data',
    showUpload: true, //是否显示上传按钮
    showCaption: false,//是否显示标题
    browseClass: "btn btn-primary", //按钮样式             
    previewFileIcon: "<i class='glyphicon glyphicon-king'></i>", 
    msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
});

</script>
